package com.x.client.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.x.erp.model.CarConf;
import com.x.erp.rpc.CarRpcService;
import com.x.framework.controller.BaseController;
import com.x.framework.controller.ResultCode;
import com.x.framework.controller.ResultModel;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * 车辆配置信息
 */

@RestController
@RequestMapping(value = "/carConf")
public class CarConfController extends BaseController {

	@Reference
	private CarRpcService carRpcService;
	/**
	 * 查询亮点配置信息
	 * @param
	 * @return
	 */
	@RequestMapping(value = "/getBrightSpotConfList", method = {RequestMethod.POST, RequestMethod.GET})
	public ResultModel getBrightSpotConfList() {
		CarConf carConf = new CarConf();
		carConf.setConfBrightSpot(1);
		return new ResultModel(ResultCode.RESULT_SUCCESS, "查询成功", carRpcService.selectCarConf(carConf));
	}
}
